package com.aosan.website.admin.controller

import com.aosan.website.admin.service.ConfigService
import com.aosan.website.common.core.utils.ResultData
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/config")
class ConfigController(
        val configService: ConfigService
) {

    @GetMapping("/list")
    fun list(): Any {
        return ResultData.get(configService.list())
    }
}